<%page args="comment"/>
<pre><span class="comment-text">${comment.text}</span></pre>
<span class="comment-author" title="${comment.user}">${comment.user.short_name()}</span>
<span class="comment-created">(${comment.created})</span>
<span class="comment-reply-link">[<a class="show-block no-url-ref">${_('reply')}</a>]</span>
<div class="hidden-block">
	<form id="form${comment.id}" class="reply-form" action="${h.url_outside('chowa', controller='social/comments', action='reply', id=comment.id)}" method="post">
		<textarea name="text" rows="5" cols="20" style="width:100%;"></textarea>
		<p style="text-align:center"><input class="submit-button big" type="submit" value="${_('Reply')}"/></p>
	</form>
</div>
<hr/>
<ul class="comment-replies">
	% for reply in comment.replies():
	<li id="${reply.id}" class="comment"><%include file="comment.html" args="comment=reply"/></li>
	% endfor
</ul>

<script type="text/javascript">

var options = {
	target: '#${comment.id}',
	success: function() {
		$('.show-block', '#${comment.id}').click(show_block);
	}
};
$('#form${comment.id}').ajaxForm(options);

</script>
